package com.example.server2.openfeign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "server1", fallback = Servertst1Fallback.class)
@Service
public interface Servertst1 {
    @RequestMapping("/sv1/s1/test1")
   String test1(@RequestParam("param") String param);
}
